import { Router } from 'express';
import { TalkController } from '../controllers/talkController';
import { authMiddleware } from '../middlewares/authMiddleware';
export default (): Router => {
  const router = Router();
  const talkController = new TalkController();
  // 公开路由：注册和登录
  router.post('/sendMessageByUserId', authMiddleware, talkController.sendMessageByUserId);

  return router;
};